<?php


namespace app\server\model;
use app\index\model\Base;
class GoodsOrder extends Base
{
    protected $pk='id';
    public function user()
    {
        return $this->belongsTo('app\user\model\User','u_id','u_id');
    }
    public function goods()
    {
        return $this->belongsTo('Goods','goods_id','goods_id');
    }
    public function userAddress()
    {
        return $this->belongsTo('app\user\model\UserAddress','ua_id','ua_id');
    }
}